package com.wva.user.mapper;

import com.github.pagehelper.Page;
import com.wva.user.domain.po.User;
import com.wva.user.domain.po.UserFollow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hong
 * @since 2025-03-10
 */
public interface UserFollowMapper extends BaseMapper<UserFollow> {
    @Select("select u.* from sys_user u,user_follow f where f.user_id=#{userId} and u.id=f.follower_id")
    Page<User> listFollowersByUserId(long userId);
}
